package com.shy.collect.controller;

import com.shy.task.job.TaskJob;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {

    @Resource
    private TaskJob taskJob;

    @GetMapping("/test/job")
    public String test() {
        //生成日对账单
        //taskJob.makeDayBill();
        //发送邮件
        email();
        return "ok";
    }
    public void email() {
        //发送邮件
        taskJob.sendFileEmail();
    }
}